﻿@using System.Collections
@model MMSWebsite.Models.Asset.Asset

@{
    ViewBag.Title = "Valuate Asset";
    Layout = "~/Views/Shared/_Layout.Mobile.cshtml";
}
<style type="text/css">
    .left {
        width: 30%;
    }
    .right {
        width: 70%
    }
    textarea {
        height: 300px
    }
</style>

<h2>Valuate Asset</h2>
@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    @Html.HiddenFor(model => model.Id)
    @Html.HiddenFor(model => model.Customer.Id)
    <ul data-role="listview"style="margin: auto">
        <li style="border-radius: 10px">
            <table width="100%" >
                <tr >
                <td class="left">@Html.LabelFor(model => model.Customer)</td>
                <td class="right">@Html.EditorFor(model => model.Customer.Name)</td>
                <tr>
                <tr>
                <td class="left">@Html.Label("Asset Name")</td>
                <td class="right">@Html.TextAreaFor(model => model.AssetName)</td>
                <tr>
                <tr>
                <td class="left">@Html.LabelFor(model => model.AssetType)</td>
                <td class="right">@Html.DropDownListFor(model => model.AssetType.value, new SelectList(ViewBag.AssetTypes as IEnumerable), string.Empty)
                <tr>
                <tr>
                <td class="left">@Html.Label("Infomation")</td>
                <td class="right">@Html.TextAreaFor(model => model.Information)</td>
                <tr>
                <tr>
                <td class="left">@Html.LabelFor(model => model.Valuation)</td>
                <td class="right">@Html.EditorFor(model => model.Valuation.Value)</td>
                <tr>
            </table>
            <input type="submit" data-theme="c" data-icon="check" value="Valuate">
        </li>
            
    </ul>
}